package samples.d2.parallels 
{
	import flash.filters.GlowFilter;
	import flash.utils.setInterval;
	import samples.BaseSample;
	import shapes.shapes2D.Dot;
	import shapes.shapes2D.Line;
	
	/**
	 * @author Nicolas Barradeau
	 * http://en.nicoptere.net
	 */
	public class Parallel10 extends BaseSample
	{
		
		private var d0:Dot;
		private var d1:Dot;
		
		private var d2:Dot;
		private var d3:Dot;
		
		private var line0:Line;
		private var line1:Line;
		private var angle:Number = 0;
		
		public function Parallel10() 
		{
			
			var offset:int = 0;
			var count:int = 50;
			var height:int = 500;
			
			graphics.lineStyle( 0, color );
			
			for ( var i:int = 0; i < count; i++ )
			{
				
				offset = -height / 2 + ( height / count ) * i;
				
				d0 = new Dot( 100, sh / 2 + offset + 25 );
				d1 = new Dot( sw - 100, sh / 2 + offset - 25 );
				line0 = new Line( d0, d1 );
				
				d0.draw( graphics );
				d1.draw( graphics );
				line0.draw( graphics );
				
			}
			
		}
		
	}

}